package com.group.eams.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.group.eams.pojo.dto.AssetDistributeQueryDto;
import com.group.eams.pojo.entity.AssetAllocate;
import com.group.eams.pojo.entity.AssetDistribute;
import com.group.eams.pojo.vo.AssetDistributeListVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 恩哲欣
* @description 针对表【asset_distribute(资产派发表)】的数据库操作Mapper
* @createDate 2024-10-29 16:09:34
* @Entity com.group.eams.pojo.entity.AssetDistribute
*/
public interface AssetDistributeMapper extends BaseMapper<AssetDistribute> {

    Page<AssetDistributeListVo> findAssetDistributeByWhere(Page<AssetDistributeListVo> page, @Param("assetDistributeQueryDto")AssetDistributeQueryDto assetDistributeQueryDto);
    // 根据申请单号批量获取外键asset_id
    List<Long> getAssetIds(String applicationNum);
    // 根据申请单号查询
    AssetDistribute findDistributeByNum(String applicationNum);
}
